package uit.jee.lib.utilities;

import uit.jee.lib.dto.BookDTO;

/**
 *
 * @author ngloc_it
 */
public class SystemProperities {
    public static final String ADMIN_ROLE = "1";

    public static String getBookStatusString(int status){
        if (status == BookDTO.BOOK_TATUS_FREE) {
            return "Chưa mượn";
        } else if (status == BookDTO.BOOK_TATUS_ORDER) {
            return "Đã đặt";
        } else if (status == BookDTO.BOOK_TATUS_UN_FREE) {
            return "Đã mượn";
        }
        return "";
//
//         public final static int BOOK_TATUS_ORDER = -1; // sach da dat trc
//    public final static int BOOK_TATUS_FREE = 0; // sach chua dat truoc
//    public final static int BOOK_TATUS_UN_FREE = 1; // sach da muon
    }
}